import request from '@/utils/request'

// 查询用户行为记录列表
export function listHairBehaviorDetection(query) {
  return request({
    url: '/system/hairBehaviorDetection/list',
    method: 'get',
    params: query
  })
}

// 查询用户行为记录详细
export function getHairBehaviorDetection(id) {
  return request({
    url: '/system/hairBehaviorDetection/' + id,
    method: 'get'
  })
}

// 新增用户行为记录
export function addHairBehaviorDetection(data) {
  return request({
    url: '/system/hairBehaviorDetection',
    method: 'post',
    data: data
  })
}

// 修改用户行为记录
export function updateHairBehaviorDetection(data) {
  return request({
    url: '/system/hairBehaviorDetection',
    method: 'put',
    data: data
  })
}

// 删除用户行为记录
export function delHairBehaviorDetection(id) {
  return request({
    url: '/system/hairBehaviorDetection/' + id,
    method: 'delete'
  })
}
